33. Solution: Add Resource Qualifiers
Add Resource Qualifiers Solution
Now you have a complete Sunshine app!! You've added visual polish and, in this exercise, you created a unique landscape layout that displays today's weather and a list of the week's weather side by side.
Notes on Solution Code
Qualifiers
To create a unique landscape layout (and dimensions that define the spacing), you should create and override values in these files:
- res > layout-land > activity_detail.xml
- res > values-land > dimens.xml
To do the same for tablet layout spacing, add this file that applies to screens with a smallest width of 600dp:
- res > values-sw600dp > dimens.xml
The final landscape layout for Sunshine is pictured below!
Solution Code
Solution: [S12.04-Solution-ResourceQualifiers][Diff]
Landscape layout for Sunshine.